package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_building_upgrade", desc = "店铺升级", autoSave = true, uploadCk = true)
public class LogBuildingUpgrade extends ServerBaseLog {
	@FieldTypeAnnotation(desc = "用户id", isIndex = true)
	private long userId;
	@FieldTypeAnnotation(desc = "建筑id")
	private int buildingId;
	@FieldTypeAnnotation(desc = "旧等级")
	private int oldLv;
	@FieldTypeAnnotation(desc = "新等级")
	private int buildingLv;
	@FieldTypeAnnotation(desc = "消耗")
	private String consume;

	public LogBuildingUpgrade(long userId, int buildingId, int oldLv, int buildingLv, String consume) {
		this.userId = userId;
		this.buildingId = buildingId;
		this.oldLv = oldLv;
		this.buildingLv = buildingLv;
		this.consume = consume;
	}

	public long getUserId() {
		return userId;
	}
}
